/*
 * Copyright 2008 Jens Meiss
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License. 
 * You may obtain a copy of the License at 
 * 
 * http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.googlecode.hmvc4gwt.example.hmvcblog.frontend.dashboard.client.edit.blog;

import java.util.Map;

import com.google.gwt.user.client.ui.TreeItem;
import com.googlecode.hmvc4gwt.example.hmvcblog.service.dto.blog.BlogEditDTO;
import com.googlecode.hmvc4gwt.example.hmvcblog.service.dto.blog.entry.BlogEntryDTO;
import com.googlecode.hmvc4gwt.example.hmvcblog.service.dto.blog.entry.comment.BlogEntryCommentDTO;
import com.googlecode.hmvc4java.model.AModel;

/**
 * 
 * @author jens.meiss
 */
public class EditBlogModel extends AModel {
	
	private BlogEditDTO blogEditDTO;
	
	private Map<TreeItem, BlogEntryDTO> mapTreeItemBlogEntryDTO;
	
	private Map<TreeItem, BlogEntryCommentDTO> mapTreeItemBlogEntryCommentDTO;
	
	private int blogId;

	public EditBlogModel(int blogId) {
		setBlogId(blogId);
	}
	
	/**
	 * @return the blogEditDTO
	 */
	public BlogEditDTO getBlogEditDTO() {
		return blogEditDTO;
	}
	
	/**
	 * @return the blogId
	 */
	public int getBlogId() {
		return blogId;
	}

	/**
	 * @return the mapTreeItemBlogEntryCommentDTO
	 */
	public Map<TreeItem, BlogEntryCommentDTO> getMapTreeItemBlogEntryCommentDTO() {
		return mapTreeItemBlogEntryCommentDTO;
	}

	/**
	 * @return the mapTreeItemBlogEntryDTO
	 */
	public Map<TreeItem, BlogEntryDTO> getMapTreeItemBlogEntryDTO() {
		return mapTreeItemBlogEntryDTO;
	}

	/**
	 * @param blogEditDTO the blogEditDTO to set
	 */
	public void setBlogEditDTO(BlogEditDTO blogEditDTO) {
		this.blogEditDTO = blogEditDTO;
	}

	/**
	 * @param blogId the blogId to set
	 */
	public void setBlogId(int blogId) {
		this.blogId = blogId;
	}

	/**
	 * @param mapTreeItemBlogEntryCommentDTO the mapTreeItemBlogEntryCommentDTO to set
	 */
	public void setMapTreeItemBlogEntryCommentDTO(
			Map<TreeItem, BlogEntryCommentDTO> mapTreeItemBlogEntryCommentDTO) {
		this.mapTreeItemBlogEntryCommentDTO = mapTreeItemBlogEntryCommentDTO;
	}

	/**
	 * @param mapTreeItemBlogEntryDTO the mapTreeItemBlogEntryDTO to set
	 */
	public void setMapTreeItemBlogEntryDTO(
			Map<TreeItem, BlogEntryDTO> mapTreeItemBlogEntryDTO) {
		this.mapTreeItemBlogEntryDTO = mapTreeItemBlogEntryDTO;
	}
}
